package com.bachongLightNovel.works.mapper;

import com.bachongLightNovel.model.pojo.works.NovelDetails;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author vermouth
 */

@Mapper
public interface WorksNovelDetailMapper {
    List<NovelDetails> selectByNovelId(Long novelId);

    //向novel_details表中插入一条数据
    void insert(NovelDetails novelDetails);

    //根据id删除小说章节
    void deleteById(Long id);

    //根据id更新小说章节数据
    void update(NovelDetails novelDetails);

    //根据id查询小说章节信息
    NovelDetails selectById(Long detailId);

    //根据所属小说id删除小说章节
    void deleteByNovelId(Long novelId);
}
